import request from '@/utils/request'

// 查询角色项目关联列表
export function listRoleProject(query) {
    return request({
        url: '/pensionProject/roleProject/list',
        method: 'get',
        params: query
    })
}

// 查询角色项目关联所有列表
export function listAllRoleProject(query) {
    return request({
        url: '/pensionProject/roleProject/listAll',
        method: 'get',
        params: query
    })
}

// 查询角色项目关联所有列表
export function listIdsRoleProject(query) {
    return request({
        url: '/pensionProject/roleProject/ids',
        method: 'get',
        params: query
    })
}

// 查询角色项目关联详细
export function getRoleProject(id) {
    return request({
        url: '/pensionProject/roleProject/' + id,
        method: 'get'
    })
}

// 新增角色项目关联
export function addRoleProject(data) {
    return request({
        url: '/pensionProject/roleProject/insertBatch',
        method: 'post',
        data: data
    })
}

